<%@ include file="/WEB-INF/jsp/includes/include.jsp"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>NoAssertions.com</title>
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/reset.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/text.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/960.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/nastyle.css" />
</head>
<%@ include file="/WEB-INF/jsp/includes/bodyheader.jsp"%>

		<!--  start center section -->
		<div id="centerSection" class="grid_12">	
			<div class="grid_2 alpha">
				<img src="<fmt:message bundle="${mess}" key="baseUrl" />img/spacer.gif"/>			
			</div>
			<div class="grid_8">
				<h2>Similar Riders</h2>
				<p>You can find similar riders in two different ways:</p>
				
				<p><b>1. Find riders that are closest to the below rider as a whole. This type of search will find the closest matches using all contact points.</b></p>
				<div class="indent3">
	  				<form name="commentForm" method="post" action="<fmt:message bundle="${mess}" key="servletUrl" />similar/rider/${rider.userid}">			
						<ul>
							<li>Total Height: ${rider.totalbodyheight}</li>
							<li>Sternal Notch: ${rider.sternalnotch}</li>
							<li>Shoulder Width: ${rider.shoulderwidth}</li>
							<li>Trunk: ${rider.trunk}</li>
							<li>Humerus: ${rider.humerus}</li>
							<li>Forearm: ${rider.forearm}</li>
							<li>Total Arm: ${rider.totalarm}</li>
							<li>Femur: ${rider.femur}</li>
							<li>Tibia: ${rider.tibia}</li>
							<li>Inseam: ${rider.inseam}</li>
							<li>Foot Length: ${rider.footlength}</li>				
							<c:choose>
								<c:when test="${empty rider.notes}">
														<li>Notes: No notes associated with this rider</li>
					          </c:when>
					          <c:otherwise>
														<li>Notes: ${rider.notes}</li>
					          </c:otherwise>
					        </c:choose>				
						</ul>
						<input type="submit" value="Find Similar Riders">
					</form>
				</div>
				<p><b>2. Find riders by specifying fit point ranges. This type of search will find riders whose contact points fall in the ranges you specify.</b></p>
				<div class="indent3">
	  				<form name="rangeFit" method="post" action="<fmt:message bundle="${mess}" key="servletUrl" />similar/rider/range">	
							<p>Click the checkbox if you want the value to be considered in the search. Ranges provides are 1.5% below and 1.5% above original measurement.</p>
							<div><span class="col1"><input type="checkbox" name="totalbodyheight" value="totalbodyheight"/> Total Height:</span><input type="text" name="ltotalbodyheight" size="5" value="${lrangerider.totalbodyheight}"><input type="text" name="utotalbodyheight" size="5" value="${urangerider.totalbodyheight}"></div>
							<div><span class="col1"><input type="checkbox" name="sternalnotch" value="sternalnotch"/>  Sternal Notch:</span><input type="text" name="lsternalnotch" size="5" value="${lrangerider.sternalnotch}"><input type="text" name="usternalnotch" size="5" value="${urangerider.sternalnotch}"></div>
							<div><span class="col1"><input type="checkbox" name="shoulderwidth" value="shoulderwidth"/>  Shoulder Width:</span><input type="text" name="lshoulderwidth" size="5" value="${lrangerider.shoulderwidth}"><input type="text" name="ushoulderwidth" size="5" value="${urangerider.shoulderwidth}"></div>
							<div><span class="col1"><input type="checkbox" name="trunk" value="trunk"/>Trunk:</span><input type="text" name="ltrunk" size="5" value="${lrangerider.trunk}"><input type="text" name="utrunk" size="5" value="${urangerider.trunk}"></div>
							<div><span class="col1"><input type="checkbox" name="humerus" value="humerus"/>Humerus:</span><input type="text" name="lhumerus" size="5" value="${lrangerider.humerus}"><input type="text" name="uhumerus" size="5" value="${urangerider.humerus}"></div>
							<div><span class="col1"><input type="checkbox" name="forearm" value="forearm"/>Forearm:</span><input type="text" name="lforearm" size="5" value="${lrangerider.forearm}"><input type="text" name="uforearm" size="5" value="${urangerider.forearm}"></div>
							<div><span class="col1"><input type="checkbox" name="totalarm" value="totalarm"/>Total Arm:</span><input type="text" name="ltotalarm" size="5" value="${lrangerider.totalarm}"><input type="text" name="utotalarm" size="5" value="${urangerider.totalarm}"></div>
							<div><span class="col1"><input type="checkbox" name="femur" value="femur"/>Femur:</span><input type="text" name="lfemur" size="5" value="${lrangerider.femur}"><input type="text" name="ufemur" size="5" value="${urangerider.femur}"></div>
							<div><span class="col1"><input type="checkbox" name="tibia" value="tibia"/>Tibia:</span><input type="text" name="ltibia" size="5" value="${lrangerider.tibia}"><input type="text" name="utibia" size="5" value="${urangerider.tibia}"></div>
							<div><span class="col1"><input type="checkbox" name="inseam" value="inseam"/>Inseam:</span><input type="text" name="linseam" size="5" value="${lrangerider.inseam}"><input type="text" name="uinseam" size="5" value="${urangerider.inseam}"></div>
							<div><span class="col1"><input type="checkbox" name="footlength" value="footlength"/>Foot Length:</span><input type="text" name="lfootlength" size="5" value="${lrangerider.footlength}"><input type="text" name="ufootlength" size="5" value="${urangerider.footlength}"></div>			
						<span class="hidden">
							<input id="bread" type="text" size="10" name="bread" />
						</span>
						<div class="submit">
							<input type="submit" value="Find Similar Riders">
						</div>
					</form>
				</div>
			</div>
			<div class="grid_2 omega">	    
			</div>
		</div>
		<div class="clear"></div>
		<!--  end center section -->
<%@ include file="/WEB-INF/jsp/includes/footer.jsp"%>